package com.mjfeed.config;

import android.annotation.SuppressLint;

/**
 *  配置常量
 * @author zhaominglei
 * @date 2014-12-3
 * 
 */
@SuppressLint("SdCardPath")
public class Constants {
	//应用名称
	public static String APP_NAME = "美嘉饲料";
	//包名
	public static String PACKAGE_NAMES = "com.mjfeed.activity";
	//数据库路径
	public static String FILE_PATH = "/data/data/" + PACKAGE_NAMES + "/databases";
	//数据库名称
	public static String DB_NAME = "mj.db";
	//数据库版本
	public static int DB_VERSION = 1;
	//api服务器地址
	public static String SERVER_URL = "http://192.168.1.112:8080/api/";
//	public static String SERVER_URL = "http://112.65.168.94/api/";
	//产品列表
	public static String PRODUCT_ALL_URL = Constants.SERVER_URL + "product/all.shtml";
	//产品列表
	public static String PRODUCT_LIST_URL = Constants.SERVER_URL + "product/list.shtml";
	//产品详情
	public static String PRODUCT_DETAIL_URL = Constants.SERVER_URL + "product/detail.shtml";
	//默认每页记录数
	public static final int DEFAULT_PAGE_SIZE = 10; 
	//注册
	public static String MEMBER_REGISTER_URL = Constants.SERVER_URL + "member/register.shtml";
	//登录
	public static String MEMBER_LOGIN_URL = Constants.SERVER_URL + "member/login.shtml";
	//我的订单
	public static String MEMBER_ORDER_URL = Constants.SERVER_URL + "member/order.shtml";
	//提交订单
	public static String MEMBER_ORDER_SUBMIT_URL = Constants.SERVER_URL + "member/order/create.shtml";
	//收货地址
	public static String MEMBER_RECEIVER_URL = Constants.SERVER_URL + "member/receiver.shtml";
	//添加收货地址
	public static String MEMBER_RECEIVER_ADD_URL = Constants.SERVER_URL + "member/receiver/add.shtml";
	//更新收货地址
	public static String MEMBER_RECEIVER_UPDATE_URL = Constants.SERVER_URL + "member/receiver/update.shtml";
	//我的关注
	public static String MEMBER_FAVORITE_URL = Constants.SERVER_URL + "member/favorite.shtml";
	//加关注
	public static String MEMBER_FAVORITE_ADD_URL = Constants.SERVER_URL + "member/favorite/add.shtml";
	//取消关注
	public static String MEMBER_FAVORITE_DELETE_URL = Constants.SERVER_URL + "member/favorite/delete.shtml";
	//校验是否已关注
	public static String MEMBER_FAVORITE_CHECK_URL = Constants.SERVER_URL + "member/favorite/check.shtml";
	//更新个人资料
	public static String MEMBER_PROFILE_UPDATE_URL = Constants.SERVER_URL + "member/update.shtml";
	//修改密码
	public static String MEMBER_PASSWORD_UPDATE_URL = Constants.SERVER_URL + "member/updatepass.shtml";
	//同步购物车
	public static String MEMBER_CART_SYNC_URL = Constants.SERVER_URL + "member/cart/sync.shtml";
	//更新购物车
	public static String MEMBER_CART_UPDATE_URL = Constants.SERVER_URL + "member/cart/update.shtml";
	//删除购物车
	public static String MEMBER_CART_DELETE_URL = Constants.SERVER_URL + "member/cart/delete.shtml";
	//获取默认收货地址
	public static String MEMBER_DEFAULT_RECEIVER_URL = Constants.SERVER_URL + "member/receiver/getdefault.shtml";
}
